package com.huike.clues.mapper;

import com.huike.clues.domain.SysDictData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysDictDataMapper {

    //@Select("select dict_code,dict_sort,dict_label,dict_value,dict_type,css_class,list_class,is_default,status,create_by,create_time,update_by,update_time,remark from sys_dict_data where dict_type=#{dictType} order by dict_sort")
    List<SysDictData> getDictDataByType(String dictType);


    List<SysDictData> list(SysDictData sysDictData);

    void add(SysDictData sysDictData);

    @Select("Select * from sys_dict_data where dict_code=#{dictCode}")
    SysDictData getDetailsById(Long dictCode);

    void update(SysDictData sysDictData);

    void deleteByIds(@Param("dictCodes") Long[] dictCodes);
}
